package com.asen.commons.core.listener;

import com.asen.commons.core.base.domain.Core;

/**
 * 服务操作方法监听类
 *
 * @author Gary
 * @version 1.0
 * @date 2019-12-04
 */
public interface ServiceActionListener<T extends Core> {

    /**
     * 执行前
     *
     * @param context
     * @throws Exception
     */
    void before(ServiceContext<T> context) throws Exception;

    /**
     * 执行后
     *
     * @param context
     * @throws Exception
     */
    void after(ServiceContext<T> context) throws Exception;
}
